package com.service.admin.member.controller.req;

import com.service.dao.enums.CoinsEnum;
import com.service.dao.enums.WalletEnums;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.math.BigDecimal;

/**
 * <dl>
 * <dt>back-end</dt>
 * <dd>Description:</dd>
 * <dd>Copyright: Copyright (C) 2015</dd>
 * <dd>Company: </dd>
 * <dd>CreateDate: 2019年12月25日</dd>
 * </dl>
 *
 * @author
 */
@Data
public class MemberRechargeReq {

    @NotBlank(message = "会员账号不能为空")
    private String userAccount;

    private Integer type;//交易类型 1 充值，2 减扣

    private CoinsEnum coins;

    private WalletEnums.Type walletType;

    @NotNull(message = "充值数量不能为空")
    @Positive(message = "充值数量不能低于0")
    private BigDecimal rechargeNum;

}
